package com.qyhl.module_activities.serviceimp;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.qyhl.module_activities.act.ActivityTempFragment;
import com.qyhl.module_activities.act.live.TeleVoteFragment;
import com.qyhl.module_activities.act.player.list.PlayerListFragment;
import com.qyhl.webtv.basiclib.base.BaseFragment;
import com.qyhl.webtv.commonlib.constant.ServicePathConstant;
import com.qyhl.webtv.commonlib.service.ActivitiesService;
/**
 * 活动相关服务
 * @author helin
 * @date  2019年4月10日16:25:05
 */
@Route(path = ServicePathConstant.ACTIVITY_SERVICE)
public class ActivitiesServiceImpl implements ActivitiesService {

    @Override
    public void init(Context context) {

    }


    @Override
    public BaseFragment getActivityTempFragment(String title, boolean isback, int type) {
        return ActivityTempFragment.newInstance(title, isback, type);
    }

    @Override
    public BaseFragment getPlayerListFragment(int actId, Long pageViews, Integer sumPlayer, Integer sumVote, Integer voteStatus, Integer actStatus, boolean isHideTop) {
        return PlayerListFragment.newInstance(actId, pageViews, sumPlayer, sumVote, voteStatus, actStatus, isHideTop);
    }

    @Override
    public BaseFragment getTeleVoteFragment(int actId, int linkId) {
        return TeleVoteFragment.newInstance(actId, linkId);
    }
}
